package com.nuanshui.heatedloan.task.facade.constant;

/**
 * Task 的name 和 group
 * @Author: Gonzo
 * @Date 2017/4/12下午5:38
 * @since 1.4.2
 */
public enum  TaskEnum {

    TRADE_DETAIL_JOB("TRADE_DETAIL_JOB","TRADE_DETAIL"), //交易明细查询

    ADMIN_PUSH_MSG("ADMIN_PUSH_MSG", "PUSH_MSG"),

    REFUND_EXPIRERE_JOB("REFUND_EXPIRERE_JOB","REFUND_EXPIRERE"),  //还款到期的任务

    REMINDER_REFUND_JOB("REMINDER_REFUND_JOB","REMINDER_REFUND"),  //提醒还款的任务

    LATE_REMIND_JOB("LATE_REMIND_JOB","LATE_REMIND"),   //逾期提醒任务

    CALCULATE_LATE_PAYMENT_JOB("CALCULATE_LATE_PAYMENT_JOB","CALCULATE_LATE_PAYMENT"),  //逾期费的计算

    //订单失效的定时任务
    APPOINTMENT_ORDER_EXPIRE("APPOINTMENT_ORDER_EXPIRE", "ORDER_EXPIRE"),//预约到时间但是未入场自动失效(展馆, 活动, 电影)
    APPOINTMENT_OVERTIME_ORDER_OVERTIME("APPOINTMENT_OVERTIME_ORDER_OVERTIME", "ORDER_OVERTIME"),//订单到时间未支付自动失效(收费展馆预约 电影预约)

    APPOINTMENT_ORDER_NOT_CHECK_SUCCESS("APPOINTMENT_ORDER_NOT_CHECK_SUCCESS", "ORDER_SUCCESS"),//不需要扫码, 立即可以入场的订单

    WECHAT_ACCOUNT_INFO_REFRESH_COMPONENT_ACCESS_INFO("COMPONENT_ACCESS_INFO", "WECHAT_ACCOUNT_INFO_REFRESH"), //定时获取第三方平台component_access_token
    WECHAT_ACCOUNT_INFO_REFRESH_AUTHORIZATION_INFO("AUTHORIZATION_INFO", "WECHAT_ACCOUNT_INFO_REFRESH"), //定时刷新 授权公众号或小程序的接口调用凭据（令牌）
    ;

    private String name;
    private String group;

    TaskEnum(String name, String group) {
        this.name = name;
        this.group = group;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }
}
